package com.ys.entity.business;

import javax.persistence.Table;


import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="`static_config`", catalog="id")
public class StaticConfig extends BaseEntity<StaticConfig> {

	private Long id; // 主键ID
	private String code; // 关键值1
	private Integer sortNo; // 排序序号
	private String info; // 信息，可为JSON
	private String remark; // 备注说明
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public StaticConfig setId(Long id) {
		this.id = id;
		return this;
	}
	public String getCode() {
		return code;
	}
	public StaticConfig setCode(String code) {
		this.code = code;
		return this;
	}
	public Integer getSortNo() {
		return sortNo;
	}
	public StaticConfig setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
		return this;
	}
	public String getInfo() {
		return info;
	}
	public StaticConfig setInfo(String info) {
		this.info = info;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public StaticConfig setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public StaticConfig setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public StaticConfig setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public StaticConfig setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static StaticConfig staticConfig(
		String code,
		Integer sortNo,
		String info,
		String remark,
		Integer status
			) {
		StaticConfig entity = new StaticConfig();
		entity.setCode(code);
		entity.setSortNo(sortNo);
		entity.setInfo(info);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}